import requests

from utils.log_handler import logger

class MyRequest:

    def post(self,url,json,**kwargs):
        logger.info(f"发送请求的方式POST,请求URL:{url},请求参数,{json},其他参数,{kwargs}")
        res = requests.post(url,json,**kwargs)
        print(res)
        logger.info(f"返回的结果:{res.status_code},{res.json()}")
        return res